# coding=utf-8
from flask import request, jsonify, Blueprint

demo_bp = Blueprint("demo_bp", __name__)


@demo_bp.route('/test/', methods=['GET', 'POST'])
def index():
    values = request.values.to_dict()
    values['method'] = 'GET' if request.method == 'GET' else 'POST'
    values['app'] = 'DEMO APP'
    return jsonify(values)
